package objects;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JComboBox;

import clue.editor.ClueFrame;

public class ClueComboBox<T> extends JComboBox<T>{

	private static final long serialVersionUID = 1L;

	public ClueComboBox()
	{
		addActionListener(getChangeListener());
	}
	
	private ActionListener getChangeListener()
	{
		return new ActionListener() {
			
			@Override
			public void actionPerformed(ActionEvent arg0) {
				ClueFrame.getInstance().addEdit();
			}
		};
	}
}
